package cn.zindesign.base;

import java.util.List;
import java.util.Map;

import cn.zindesign.system.Page;
import cn.zindesign.system.PageList;

public interface BaseMapper {

    int insert(String key,Object record);

    int updateById(String key,Object record);
    
    int deleteById(String key,Integer id);
    
    Object selectById(String key,Integer id);
   
    List<Object> selectByProperty(String key,Map<?, ?> map);
    
    List<Object> selectByProperty(String key,Map<?, ?> map,int offset,int limit);
    
    int countByProperty(String key,Map<?, ?> map);
    
    

}
